﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Daycare.Models
{
    public class Child
    {
        public Child()
        {
            childImage = new Image();
            childImage.fileName = Configuration.ImagePath;
            childImage.imageId = 1;
            this.isActive = true;
        }
        public int childId { get; set; }
        public String firstName { get; set; }
        public string middleName { get; set; }
        public String lastName { get; set; }
        public String nickName { get; set; }
        public Image childImage { get; set; }
        public bool isActive { get; set; }
        public DateTime dateOfBirth { get; set; }
        public int ageInYears
        {
            get { return DateTime.Now.Year - dateOfBirth.Year; }
        }
        public String fullName
        {
            get { return firstName + ' ' + middleName + ' ' + lastName; }
        }
        public int familyId { get; set; }

    }
}